home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 85 / 085.d81 / tricks ii (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  14KB  |  390 lines

  1. 100 poke53281,0:poke53280,0:print"[147]"
  2. 105 poke56,128:clr
  3. 107 dv=peek(186):ifdv<8thendv=8
  4. 110 sys57812"tricks.o",dv,0:poke780,0:poke781,0:poke782,192:sys65493
  5. 111 sys57812"tricks font 1",dv,0:poke780,0:poke781,0:poke782,144:sys65493
  6. 112 sys57812"tricks font 2",dv,0:poke780,0:poke781,0:poke782,152:sys65493
  7. 120 s1=34816:s2=36864:s3=38912:s9=51200:poke648,128:print"[147]";:sys49152,s1
  8. 130 poke56578,peek(56578)or3:poke56576,(peek(56576)and252)or1:rem bank #2
  9. 140 poke53272,2:poke650,128
  10. 147 rem machine language routines:
  11. 150 cr=49152:rem copyrom
  12. 160 cs=49251:rem clearset
  13. 170 rs=49277:rem rstorset
  14. 180 fo=49442:rem fadeout
  15. 190 fi=49477:rem fadein
  16. 200 rv=49674:rem rvrseset
  17. 210 xs=49722:rem xorset
  18. 220 sw=49778:rem scrwedge
  19. 225 wo=50009:rem wedgeoff
  20. 230 ss=50022:rem spredset
  21. 240 rb=50084:rem rubset
  22. 250 rt=50276:rem rtrveset
  23. 260 rm=50301:rem rembrset
  24. 270 r1=50171:rem scrnfill
  25. 280 r2=50224:rem colrfill
  26. 285 dima$(7),a(7),b$(13,2),b(20),c(10),c$(6,9),d(8):q$=chr$(34)
  27. 290 a$(1)="[214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214][214]"
  28. 300 a$(2)="[219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219]"
  29. 310 a$(3)="[166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166]"
  30. 320 a$(4)="**************************************"
  31. 330 a$(5)="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
  32. 340 a$(6)="[215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215]"
  33. 350 a$(7)="[162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162]"
  34. 360 fora=1to7:reada(a):next:fora=1to13:forb=1to2:readb$(a,b):next:next
  35. 370 fora=1to10:readc(a):next
  36. 380 fora=0to9:c$(6,a)="[215][215][215][215][215][215][215][215][215][215]":next
  37. 390 fora=0to5:forb=0to9:reada$:c$(a,b)=""+a$:next:next
  38. 400 fora=1to8:readd(a):next
  39. 499 rem display copyright notice
  40. 500 rem
  41. 510 al=1:print"[147]":sysrm,s2:syscs,s1
  42. 512 fora=1to10:poke646,c(a):print"-here's more stuff for your programs!-":next
  43. 515 printtab(2)"                                    "
  44. 520 printtab(2)"[154]          character tricks          "
  45. 525 printtab(2)"[154]                 by                 "
  46. 530 printtab(2)"[154]     john william harris (tmg)      "
  47. 540 printtab(2)"[154]      @ 1991 by softdisk, inc.      "
  48. 550 printtab(2)"[154]     published on loadstar #85!     "
  49. 560 printtab(2)"[154]   subscriptions : 1-800-831-2694   "
  50. 570 printtab(2)"[154]        all rights reserved         "
  51. 580 printtab(2)"[159]                                    "
  52. 590 sysrs,s1:f=0
  53. 600 printtab(9)"[158]---- press a key! ----":ct=700
  54. 610 geta$:ifa$=""thenct=ct-1:ifct>0then610
  55. 620 ifa$<>""then1000
  56. 630 syscr,s9:sysrs,s1:geta$:ifa$<>""then1000
  57. 640 sysrm,s2:sysrs,s1:geta$:ifa$<>""then1000
  58. 650 sysrm,s3:sysrs,s1:geta$:ifa$<>""then1000
  59. 660 goto630
  60. 1000 syscs,s1:print"[147]";:sysrm,s2:g=int(rnd(1)*7)+1:sysr1,a(g):h=int(rnd(1)*15)+1
  61. 1010 sysr2,h
  62. 1030 print"[150][213][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]"
  63. 1040 fora=1to21:print"[150][221]                                    [221]":next
  64. 1050 print"[150][202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203]"
  65. 1100 print"[159]character tricks: johnny's tricks ii"
  66. 1110 print"[150]use the [159]joystick[150] or [159]cursor keys[150] to"
  67. 1120 print"choose something, then press [158]fire[150] or"
  68. 1130 print"[158]return[150] to confirm your selection."
  69. 1140 print"[150][213][192][178][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]"
  70. 1150 fora=1to13:print"[221][159] [150][221]                                [221]":next
  71. 1160 print"[171][177][192][177][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][177][179]"
  72. 1170 print"[153]introduction"
  73. 1175 print"[153]screen and color fill...again?"
  74. 1180 print"1[146][154]the rom-copy routine"
  75. 1190 print"2[146][154]slide off & slide on"
  76. 1210 print"3[146][154]fade out and in"
  77. 1220 print"4[146][154]reverse a set[146]"
  78. 1230 print"5[146][154]xor:for the techie in some of us"
  79. 1240 print"6[146][154]the interrupt wedge"
  80. 1250 print"7[146][154]spread-warning:very fattening "
  81. 1260 print"8[146][154]rub-this baby slices and dices"
  82. 1270 print"9[146][154]retrieve and remember"
  83. 1280 print"just about everything...yikes!!"
  84. 1290 print"[159]leaving already? [158]loadstar"
  85. 1292 print"[155]"b$(al,1):print""b$(al,2)
  86. 1300 a=33011+al*40:b=al:c=22528:pokea+c,3:pokea,68:sysrs,s1:syssw,s1+a(g)*8,1
  87. 1305 poke198,0
  88. 1310 d=peek(56320):ifd=127then1400
  89. 1320 ifd=126thengosub1500
  90. 1330 ifd=125thengosub1600
  91. 1340 ifd=111then1700
  92. 1345 goto1310
  93. 1400 geta$:ifa$="[145]"thengosub1500
  94. 1410 ifa$=""thengosub1600
  95. 1420 ifa$=chr$(13)then1700
  96. 1425 ifa$=" "then1800
  97. 1430 ifval(a$)=.then1310
  98. 1440 onval(a$)gosub40000,41000,42000,43000,44000,45000,46000,47000,48000
  99. 1450 goto1310
  100. 1500 ifb>1thenpokea,32:b=b-1:a=a-40:pokea+c,3:pokea,68
  101. 1510 print"":poke214,20:print:print"[155]"b$(b,1)
  102. 1520 print""b$(b,2)"";:return
  103. 1600 ifb<13thenpokea,32:b=b+1:a=a+40:pokea+c,3:pokea,68
  104. 1610 print"":poke214,20:print:print"[155]"b$(b,1)
  105. 1620 print""b$(b,2)"";:return
  106. 1700 al=b:ifb=13then14000
  107. 1701 a$=left$(a$(g),3):b$=right$(a$(g),2)
  108. 1702 c$=a$+""+b$
  109. 1704 poke646,h:print"";:fora=1tob+6:printa$(g):next:printc$
  110. 1705 fora=b+8to24:printa$(g):next:print"";
  111. 1706 sysr2,1:fore=1to15:pokea,69:sysr2,6:pokea,68:sysr2,3:next
  112. 1707 sysr2,1:sysr2,15:sysr2,12:sysr2,11:sysr2,0:sysr1,32:syswo
  113. 1710 onbgoto2000,3000,4000,5000,6000,7000,8000,9000,10000,11000,12000,13000
  114. 1800 sysrm,s3:sysfo,s1,1:sysfi,s1,1:s4=s2:s2=s3:s3=s4:goto1310
  115. 2000 rem
  116. 2010 gosub21000
  117. 2035 print"i n t r o d u c t i o n"
  118. 2040 print"[150]another set of interesting,"
  119. 2050 print"unusual and weird ml graphics"
  120. 2060 print"routines to use in your own"
  121. 2070 print"programs.  most of these routines"
  122. 2080 print"require a custom character set, or"
  123. 2090 print"at least a copy of the built-in rom"
  124. 2100 print"set, to be effective.  thus, a bit"
  125. 2110 print"more programming experience might be"
  126. 2120 print"necessary to make any use of these"
  127. 2130 print"routines."
  128. 2140 print"most of the choices from the main"
  129. 2150 print"menu show off one or two routines."
  130. 2160 print"they also give some information"
  131. 2170 print"about it, and show some ways it"
  132. 2180 print"could be used. see the instruction"
  133. 2190 print"file for more about each routine."
  134. 2200 print""tab(5)"[153]press [158]fire[153] or [158]return[153] to go on"
  135. 2210 gosub20000:gosub21000
  136. 2220 print""tab(10)"introduction page 2"
  137. 2230 print"[150]abbreviations:"
  138. 2240 print""tab(8)"css-character set start"
  139. 2250 print""tab(6)"sp-speed routine operates at"
  140. 2260 print"one last thing: to swap the two"
  141. 2270 print"character sets the program uses,"
  142. 2280 print"press [158]space[150] from the menu screen."
  143. 2290 print"[153]press [158]fire[153] or [158]return[153] for the menu."
  144. 2300 gosub20000:goto1000
  145. 3000 print"[159]note-you might remember these from the"
  146. 3010 print"previous program. they're back, not"
  147. 3020 print"because of public demand or anything"
  148. 3030 print"like that, b